56b394170653ee590cf9908509be00fab690d918,src/main/java/org/elasticsearch/common/joda/FormatDateTimeFormatter.java,FormatDateTimeFormatter,FormatDateTimeFormatter,#String#DateTimeFormatter#DateTimeFormatter#Locale#,44

Before Change


        this.format = format;
        this.locale = locale;
        this.printer = locale == null ? printer : printer.withLocale(locale);
        this.parser = locale == null ? parser : parser.withLocale(locale);
    }
    
    public String format() {

After Change


        this(format, parser, parser, locale);
    }

    public FormatDateTimeFormatter(String format, DateTimeFormatter parser, DateTimeFormatter printer, Locale locale) {
        this.format = format;
        this.locale = locale;
        this.printer = locale == null ? printer.withDefaultYear(1970) : printer.withLocale(locale).withDefaultYear(1970);
        this.parser = locale == null ? parser.withDefaultYear(1970) : parser.withLocale(locale).withDefaultYear(1970);
    }
    
    public String format() {